let baseUrl = ''; // 接口
let h5ShopUrl = ''; // 商城h5地址
let h5PetUrl = ''; // 宠物h5地址
const {
  microapp,
  common,
} = uni.getEnvInfoSync();
if (microapp.envType === 'development') { // 测试版
  baseUrl = 'https://gateway-uat.findapet.com.cn';
  h5ShopUrl = 'https://shop-uat.findapet.com.cn';
  // h5ShopUrl = 'http://10.1.20.77:1028';
  h5PetUrl = 'https://h5-uat.findapet.com.cn';
} else if (microapp.envType === 'preview') { // 预览版
  baseUrl = 'https://gateway-uat.findapet.com.cn';
  h5ShopUrl = 'https://shop-uat.findapet.com.cn';
  h5PetUrl = 'https://h5-uat.findapet.com.cn';
} else { // 正式版
  baseUrl = 'https://gateway-uat.findapet.com.cn';
  h5ShopUrl = 'https://shop-uat.findapet.com.cn';
  h5PetUrl = 'https://h5-uat.findapet.com.cn';
}
console.log('microapp.envType', microapp.envType);
export default {
  baseUrl,
  h5ShopUrl,
  h5PetUrl,
  USER_DATA_PATH: common.USER_DATA_PATH,
  microapp,
};